package com.tongqin.distributed;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        System.out.println("Hello World!");
        System.out.println("111==="+System.currentTimeMillis());
        gets();
        System.out.println("222==="+System.currentTimeMillis());

    }

    public static String gets() {
        try {
            long end = System.currentTimeMillis() + 1000;
            while (System.currentTimeMillis() < end) {
                if (1 == 1) {
                    return "hhh";
                }
                System.out.println("不会执行");
                Thread.sleep(1000);

            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
